package singleton.myself.lazy;

public class LazyDoubleCheckSingleton {
    public static LazyDoubleCheckSingleton lazySingleton = null;

    public  static LazyDoubleCheckSingleton getInstance(){

        if (lazySingleton==null){
            synchronized(LazyDoubleCheckSingleton.class){
                if(lazySingleton==null){
                    lazySingleton = new LazyDoubleCheckSingleton() ;
                }
            }
        }
        return lazySingleton;
    }
}
